package com.zust.data.dal;

import com.zust.data.entity.base.BaseEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.querydsl.QueryDslPredicateExecutor;

import java.util.List;

/**
 * @author senselyan
 * @Description: ${todo}
 * @date 2018/4/4 16:20
 */
//public interface DefaultDatabaseRepository<T extends BaseEntity> extends MongoRepository<T, String>, QueryDslPredicateExecutor<T> {
public interface DefaultDatabaseRepository<T extends BaseEntity> extends MongoRepository<T, String>{
    Page<T> findAllByDeletedFlag(int var1, Pageable var2);

    List<T> findAllByDeletedFlag(int var1);
}
